package com.vhly.ddxdecompiler.dexreader.file.mixeditem.annotation;

import com.vhly.ddxdecompiler.dexreader.file.DexFile;
import com.vhly.ddxdecompiler.dexreader.file.mixeditem.AnnotationSetItem;
import com.vhly.ddxdecompiler.dexreader.file.mixeditem.Item;
import com.vhly.ddxdecompiler.dexreader.file.mixeditem.MemberIdItem;
import com.vhly.ddxdecompiler.dexreader.io.DexInputStream;

import java.io.ByteArrayInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: vhly
 * Date: 2009-10-19
 * Time: 17:02:47
 *
 * @author vhly[FR]
 */
public class FieldAnnotationStruct extends Item {

    private MemberIdItem field;
    private AnnotationSetItem annotations;

    private int fieldIndex;
    private int annotationsOff;

    private DexFile dex;

    public FieldAnnotationStruct(DexFile dexFile) {
        dex = dexFile;
    }

    /**
     * 读取数据
     *
     * @param din 输入流
     * @throws java.io.IOException 异常
     */
    public void read(DexInputStream din) throws IOException {
        fieldIndex = din.readInt();
        annotationsOff = din.readInt();
    }

    /**
     * 输出数据
     *
     * @param dout 输出流
     * @throws java.io.IOException 异常
     */
    public void write(DataOutputStream dout) throws IOException {
    }

    public void reloc(ByteArrayInputStream bin, int offset) throws IOException {

    }
}
